//This is the object drawn when user wants to see military bases on the map
//Includes a mouse over function for displaying base information

public class MilitaryBase extends Icon {
	String args[] = {"", "", ""}; //Holds name of the military base & city
	
	public MilitaryBase(float _x, float _y, float w, float h, String s1, String s2) {
		x = _x;
		y = _y;
		width = w+5;
		height = h+5;
		args[0] = "(Military Base)";
		args[1] = s1;
		args[2] = s2;
	}
	
	public void draw() {
		GLOBAL.processing.stroke(2);
		GLOBAL.processing.fill(GLOBAL.colorMilitary, 100);
		GLOBAL.processing.rect(x, y, width, height);
		
		//Draw info during mouse-over
		if(mouseOver()){
			GLOBAL.isInfoShowingMB = true;
			drawInfoBox(args);
		}
	}
	
}
